package com.s666.demo.config.xml.impl;
/**
 * 环境配置文件
 */

import com.s666.demo.config.xml.SystemCfg;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.Profile;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@Profile({"dev","test"})
@Configuration
@ImportResource(locations={"classpath:config/xml/system-dev.xml"})
public class SystemDevCfgImpl implements SystemCfg {
    private String name;
    private String version;
    private String author;

    private List<String> servers  = new ArrayList<String>() ;
    private Map<String,String> cmp = new LinkedHashMap<>();

    public Map<String, String> getCmp() {
        return cmp;
    }

    public void setCmp(Map<String, String> cmp) {
        this.cmp = cmp;
    }

    public List<String> getServers() {
        return servers;
    }

    public void setServers(List<String> servers) {
        this.servers = servers;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}


